import request from '@/utils/request'

// 查询技术推广列表
export function listTechnology(query) {
  return request({
    url: '/system/technology/list',
    method: 'get',
    params: query
  })
}

// 查询技术推广详细
export function getTechnology(id) {
  return request({
    url: '/system/technology/' + id,
    method: 'get'
  })
}

// 新增技术推广
export function addTechnology(data) {
  return request({
    url: '/system/technology',
    method: 'post',
    data: data
  })
}

// 修改技术推广
export function updateTechnology(data) {
  return request({
    url: '/system/technology',
    method: 'put',
    data: data
  })
}

// 删除技术推广
export function delTechnology(id) {
  return request({
    url: '/system/technology/' + id,
    method: 'delete'
  })
}
